import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28463
 * Date: 2022—05—07
 * Time: 14:47
 */

public class TestDemo02 {
/*    public static void print(int[] array2){
        for (int i = 0; i < array2.length; i++) {
            System.out.print(array2[i]+" ");
        }
    }
    public static void main(String[] args) {
        int[] array1 = {1,2,3,4,5,6};
        print(array1);
    }*/
/*    public static void func(int x){
        x = 100;
    }
public static void main(String[] args) {
    int a = 10;
    func(a);
    System.out.println(a);
}*/
/*    public static void test1(int[] array2){
        array2 = new int[] {11,22,33};
    }
    public static void test2(int[] array2){
        array2[0] = 99;
    }
public static void main(String[] args) {
    int[] array1 = {1,2,3,4,5};
    test2(array1);
    System.out.println(Arrays.toString(array1));
}*/
/*    public static int[] test(){
        int[] tmp = {1,2,3,4,5};
        return tmp;
    }
public static void main(String[] args) {
    int[] ret = test();
    System.out.println(Arrays.toString(ret));
}*/
public static void main(String[] args) {
    int[][] array1 = {{1,2,3},{2,8,6}};
    for (int i = 0; i < array1.length; i++) {
        for (int j = 0; j < array1[i].length; j++) {
            System.out.print(array1[i][j]+" ");
        }
        System.out.println();
    }
}
}
